<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Standard\Bundle\ModuleAboutBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
/**
 * Description of IndexController
 *
 * @author tuong.luu
 */
class AboutController extends Controller{
    //put your code here
    /**
     * @Route("/hello/{name}")
     * @Template()
     */
    public function showAction(){
//        $service = $this->container->get('about.service');
//    	echo $about = $service->getDemo(1);
//        return $this->render('StandardModuleAboutBundle:About:show.html.twig');
        
//        $service = $this->container->get('book.service');
//    	$service->testDesginPatten();
        
//        $service = $this->container->get('page.service');
//    	$service->testDesginPatten();
//        $service = $this->container->get('FactoryMethodDesginPatten.service');
//    	$service->testDesginPatten();
//        $service = $this->container->get('PrototypeDesginPatten.service');
//    	$service->testDesginPatten();
        $service = $this->container->get('SingletonDesginPatten.service');
    	$service->testDesginPatten();
        exit;
    }
}
